﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlaceOrder_Admin.Events
{
    public class ChatCheckBoxEventService
    {
        public static event EventHandler<CheckComboBoxSelectionEventArgs> CheckComboBoxSelectionChanged;

        public static void OnCheckComboBoxSelectionChanged(List<string> addedItem, List<string> removedItem)
        {
            CheckComboBoxSelectionChanged?.Invoke(null, new CheckComboBoxSelectionEventArgs { AddedItems = addedItem, RemovedItems = removedItem });
        }
    }

    public class CheckComboBoxSelectionEventArgs : EventArgs
    {
        public List<string> AddedItems { get; set; }
        public List<string> RemovedItems { get; set; }
    }
}
